"use strict";


var root = FocusEngine.render();

var showall = root.getWidgetById('showall');
var summary = root.getWidgetById('movie-summary');
summary.on('ok',function(e){
    showall.focus();
    //避免页面直接退出
    if(typeof yunos !== 'undefined'){
        yunos.context.preventDefaultKeyEvent(true);
    }
    
})
showall.on('keyup',function(e){
    var keycode = e.keyCode;
    switch(keycode){
            //ok
        case 13:
            //back
        case 27:
            summary.focus();
            if(typeof yunos !== 'undefined'){
                yunos.context.preventDefaultKeyEvent(false);
            }
            break;
    }
})
